Release 10.1A: OpenEdge Data Management:
SQL Reference
PRO_ELEMENT function
Extracts one or more elements from an array column and returns the
NVARCHARorVARCHARstring between the specified positions, including any internal separator characters and any internal escape characters.Syntax
array_style_expressionA string of data type
VARCHARorCHAR, with a semicolon ( ; ) separating each element of the array.start_positionThe position in the string marking the beginning of the element
PRO_ELEMENTis to extract.end_positionThe position in the string marking the end of the element to be extracted.
ExamplesThe following example returns the string '
bb':
The next example returns the string '
aa;bb':
The third example returns the string '
aa~;aa':
Notes
- The
array_style_expressionmust be data typeNVARCHAR,VARCHAR, orCHAR.- The returned string does not include the leading separator of the first element, or the trailing separator ( ; ) of the last element.
- Even if you are extracting only one element, the escape characters are included in the result.
- You must invoke
PRO_ARR_DESCAPEto remove any escape characters.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |